/**
 * 
 */
package com.yixun.qfbao.model.dto;

import com.yixun.qfbao.model.EstateAdviser;

import java.util.Date;
import java.util.UUID;

/**
 * @author yuefei.chen
 *
 */
public class EstateAdviserDTO extends EstateAdviser {

	@Override
	public String getAdviserUuid() {
		
		if (super.getAdviserUuid()==null) {
		
			return UUID.randomUUID().toString();
		}
		return super.getAdviserUuid();
	}

	@Override
	public Date getCreateTime() {
		
		if(super.getCreateTime()==null) {
		
			return new Date();
		}
		return super.getCreateTime();
	}

	@Override
	public String getDeleted() {
		if(super.getDeleted()==null) {
			return "0";
		}
		return super.getDeleted();
	}

	

}
